package com.generate.library;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;


public class FileUtils
{
	private FileUtils()
	{
	}

	public static void copyFile(File from, File to) throws IOException
	{
		System.out.println("Copy from {0} --> {1}".replace("{0}", from.getPath()).replace("{1}", to.getPath()));
		if (!to.exists())
		{
			to.createNewFile();
		}
		Files.copy(from.toPath(), to.toPath(), StandardCopyOption.REPLACE_EXISTING);
	}
}
